package manyText;
//创建一个子类，并快捷生成快速生成相关结构体，如有参与无参，get和Set方法
public class classtext1 {
    public static void main(String[] args) {
        class1 cs = new class1();
    }
    public static class class1 {
        //alt+insert,快捷键可以快速生成相关结构体，如有参与无参，get和Set方法；
        private int age;
        private String gen;
        private String name;

        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }

        public String getGen() {
            return gen;
        }

        public void setGen(String gen) {
            this.gen = gen;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
//下面有参与全参结构体，当你不定义结构体时，系统会自动生成无参结构体
        public class1() {
        }//无参

        public class1(int age, String gen, String name) {
            this.age = age;
            this.gen = gen;
            this.name = name;
        }//全参
    }
}


